<div class="right_t">
    <h3 class="tit_bg">{:L('knowledge')}</h3>
    <div class="cont">
        <p class="on_line f12">
            <span class="headpic50 L mr10"><a class="pr10" href="{$bestUser.uid|url}" class="preview" rel="{$bestUser.uid}"><img src="{$bestUser.uid|getUserFace}" /></a></span><span><a href="{$bestUser.uid|url}" class="preview" rel="{$bestUser.uid}">{$bestUser.uid|getUserName}</a></span>
            <br/>
            <span>{:L('answer_number')}：<strong class="cl04 fn">{$bestUser.askCount}</strong></span>
            <br/>
            <span>{:L('best_number')}：<strong class="cl04 fn">{$bestUser.bestCount}</strong></span>
        </p>
        <p class="C">
        </p>
        <ul>
            <php>
                foreach($bestUser['data'] as $vo){
            </php>
            <li class="ic">
                <a target="_blank" title="{$vo['title']}" href={:U("ask/Index/detail","id=".$vo['askId'])} >
                    <php>
                        echo StringTools::left($vo['title'],15)
                    </php>
                </a>
            </li>
            <php>
                }
            </php>
        </ul>
    </div>
</div>

<php>if(empty($show_widget)){</php>
<div class="right_t">
    <h3 class="tit_bg">
        <table cellspacing="0" cellpadding="0" border="0" width="50%" class="sml" align="right">
            <tr>
                <td width="80" class="thide tshow order_tab" rel="score">
                    {:L('ask_score')}
                </td>
                <td width="5" class="t0">
                    &nbsp;
                </td>
                <td width="80" class="thide order_tab" rel="exp">
                    {:L('ask_proffer')}
                </td>
            </tr>
        </table>
        {:L('taxis')}
    </h3>
    <div class="cont01" id="order_widget_score">
        <ul class="away">
            <volist name="score" id="vo" offset="0" length="16">
                <li>
                    <span class="R">{$vo.credit}</span>
                    <span class="pr5">{$i}</span>
                    <a href="{$vo.uid|url}" class="preview" rel="{$vo.uid}">{$vo.uname}</a>
                </li>
            </volist>
        </ul>
    </div>
    <div class="cont01" id="order_widget_exp" style="display:none">
        <ul class="away">
            <volist name="exp" id="vo" offset="0" length="16">
                <li>
                    <span class="R">{$vo.credit}</span>
                    <span class="pr5">{$i}</span>
                    <a href="{$vo.uid|url}" class="preview" rel="{$vo.uid}">{$vo.uname}</a>
                </li>
            </volist>
        </ul>
    </div>
</div>
<div class="C">
</div>
</div>
<script>
    $(document).ready(function(){
        $(".order_tab").click(function(){
            var rel = $(this).attr('rel');
            $(".order_tab").removeClass('tshow');
            if (rel == 'score') {
                $('#order_widget_score').show();
                $('#order_widget_exp').hide();
            }
            else {
                $('#order_widget_score').hide();
                $('#order_widget_exp').show();
            }
            $(this).addClass('tshow');
        });
        
    })
</script>
<php>}</php>
